import { Module } from 'vuex';
import { RequestOldRoutesState,RootStateTypes } from '/@/store/interface/index';

const requestOldRoutesModule:Module<RequestOldRoutesState,RootStateTypes> = {
    namespaced:true,
    state:{
        requestOldRoutes:[]
    },
    mutations:{
        getBackEndControloutes(state:any,data:Array<string>){
            state.requestOldRoutes = data;
        }
    },
    actions:{
        setBackEndControlRoutes({commit},routes:Array<string>){
            commit('getBackEndControloutes',routes)
        }
    }
}

export default requestOldRoutesModule